package git.JiangZhiXian.car;

public class Text {
    public static void main(String[] args) {
        SmallCar smallCar = new SmallCar();
        Truck truck = new Truck();
        smallCar.setBrand("北京现代");
        smallCar.setColour("白色");
        System.out.println("小汽车的品牌是："+smallCar.getBrand()+"\t"+
                "小汽车的颜色是："+smallCar.getColour());
        smallCar.drive();
        smallCar.honk();
        System.out.println("-------------------");
        truck.setBrand("五菱宏光");
        truck.setColour("黑色");
        System.out.println("卡车的品牌是："+truck.getBrand()+"\t"+
                "卡车的颜色是："+truck.getColour());
        truck.drive();
        truck.honk();

    }
}
